//app.js
// import dowloadUrl from "./api/dowloadUrl";
import RunData from "./config/runData";
import Keys from "./config/keys";
import UserInfo from "./entity/userInfo";

App({
    onLaunch: function () {
        // new dowloadUrl().http();
        wx.getSystemInfo({
            success: function (res) {
                RunData.windowWidth = res.windowWidth;
                RunData.windowHeight = res.windowHeight;
            }
        })
        wx.getStorage({
            key: Keys.MyUserInfo,
            success: (data) => {
                RunData.MyUserInfo = new UserInfo(data.data);
            }
        })
    },
    globalData: {}
});